package cn.minimelon.cushaw.view.system;

import cn.minimelon.bittermelon.bean.AjaxResult;
import cn.minimelon.bittermelon.solon.BaseController;
import cn.minimelon.bittermelon.utils.Melon;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.Context;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Controller
public class JsonController extends BaseController {
    private final static Logger logger = LoggerFactory.getLogger(JsonController.class);

    @Mapping("/b/*")
    public AjaxResult<Object> getTestApi(Context ctx) {
        String path = ctx.uri().getPath();
        logger.info(">>>>> " + path);
        return Melon.success();
    }
}
